import Vue from 'vue'
import Vuex from 'vuex'
import * as actions from './actions'
import * as getters from './getters'
import user from './modules/user'

import constant from '@/util/const'
import createLogger from "@/plugins/logger"


Vue.use(Vuex);

export default new Vuex.Store({
  actions,
  getters,
  modules:{
    user
  },
  strict:constant.debug,
  plugins: constant.debug ? [createLogger()] : []
});
